rm -rvf queue

# path=$1
# int=0
# cd $path
# for fileName in `ls -rt .`
# do
#     rm $fileName
#     let "int++"
#     # 删除最旧的2个文件
#     if [ $int -gt 2 ]
#     then
#         break
#     fi
# done
param="-I/home/vmuser/work/chedaoji.bak/include -I/home/vmuser/work/chedaoji.bak/include/common -I/home/vmuser/work/chedaoji.bak/include/common/zlog -lcriterion"
outFile=""
for fileName in `ls -rt ../common/zlog`
do
    gcc ../common/zlog/$fileName $param -o ${fileName}.o
    outFile=${outFile} ${fileName}.o
done

gcc ../common/ringQueue.c $param -o ringQueue.o
gcc queue.c $param ringQueue.o $outFile -o queue
